import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '学习目标',
    align: "center",
    dataIndex: 'goal'
  },
  {
    title: '目标类型',
    align: "center",
    dataIndex: 'type_dictText'
  },
  {
    title: '执行时间',
    align: "center",
    dataIndex: 'executionTimeType_dictText'
  },
  {
    title: '自定义时间',
    align: "center",
    dataIndex: 'customTime_dictText'
  },
  {
    title: '状态',
    align: "center",
    dataIndex: 'deleted_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  goal: {title: '学习目标',order: 0,view: 'textarea', type: 'string',},
  type: {title: '目标类型',order: 1,view: 'radio', type: 'string',dictCode: 'goalType',},
  executionTimeType: {title: '执行时间',order: 2,view: 'radio', type: 'string',dictCode: 'calendar_type',},
  customTime: {title: '自定义时间',order: 3,view: 'checkbox', type: 'string',dictCode: 'workingDayType',},
  deleted: {title: '状态',order: 4,view: 'radio', type: 'string',dictCode: 'normalOrStop',},
};
